import useAxios from "@/api/Request";

export const bucketLicensePlateListApi = (data: any) => useAxios({
	api: '/jeecg-boot/license/bucketLicensePlate/list',
	method: 'get',
	params: data
})
// 桶牌列表-添加
export const bucketAddApi = (parameter: any) => useAxios({
	api: '/jeecg-boot/license/bucketLicensePlate/add',
	method: 'post',
	data: parameter
})
// 桶牌列表-编辑
export const bucketEditApi = (parameter: any) => useAxios({
	api: '/jeecg-boot/license/bucketLicensePlate/edit',
	method: 'post',
	data: parameter
})


export const getUnitManagement2List = (data: any) => useAxios({
	api: '/jeecg-boot/unitManagement2/unitManagement2/list',
	method: 'get',
	params: data
})



// 牌照库- 根据关键字查询搜索，车属单位和车辆类型列表
export const getLicenseListApi = (data: any) => useAxios({
	api: '/jeecg-boot/license/license/list/name',
	method: 'get',
	params: data
})
// 牌照库-添加
export const licenseAdd = (parameter: any) => useAxios({
	api: '/jeecg-boot/license/license/add',
	method: 'post',
	data: parameter
})
// 牌照库-编辑
export const licenseEdit = (parameter: any) => useAxios({
	api: '/jeecg-boot/license/license/edit',
	method: 'post',
	data: parameter
})
// 厢体库--根据关键字查询搜索，车属单位和车辆类型列表
export const getListBoxNameApi = (data: any) => useAxios({
	api: '/jeecg-boot/license/license/list/boxName',
	method: 'get',
	params: data
})
//  牌照库-厢体类别查询
export const getBoxTypeListApi = (data: any) => useAxios({
	api: '/jeecg-boot/license/license/boxTypeList',
	method: 'get',
	params: data
})

// 用户组 角色权限 三级分类-分页列表查询
export const getRolePermissionsListApi = (data: any) => useAxios({
	api: '/jeecg-boot/rolePermissions/rolePermissions/list',
	method: 'get',
	params: data
})
// 小程序微信用户-分页列表查询
export const wxUserListApi = (data: any) => useAxios({
	api: '/jeecg-boot/wx_user/wxUser/list',
	method: 'get',
	params: data
})
//  角色权限 三级分类-通过id删除
export const rolePermissionsDelete = (data: any) => useAxios({
	api: '/jeecg-boot/rolePermissions/rolePermissions/delete',
	method: 'delete',
	params: data
})
// 角色权限 三级分类-添加
export const rolePermissionsAdd = (parameter: any) => useAxios({
	api: '/jeecg-boot/rolePermissions/rolePermissions/add',
	method: 'post',
	data: parameter
})
// 角色权限 三级分类-编辑
export const rolePermissionsEdit = (parameter: any) => useAxios({
	api: '/jeecg-boot/rolePermissions/rolePermissions/edit',
	method: 'post',
	data: parameter
})

// 用户列表编辑获取
export const getUserList = (id: any) => useAxios({
	api: '/jeecg-boot/wx_user/wxUser/queryById?id='+id,
	method: 'get',
})


// 用户列表编辑提交
export const submitUserList = (data: any) => useAxios({
	api: '/jeecg-boot//wx_user/wxUser/update',
	method: 'post',
	data:data
})